<style>
div {
  width: 100px;
  height: 100px;
  background-color: purple;
}

div:empty {
  background-color: orange;
}
</style>
<body>
<div></div>
<div><!-- hello world --></div>
<div><span></span></div>
<div> </div>
<div>foo</div>
